﻿@if(Svc.IsAuthenticated)
{
    <ul>
        <li class="dropdown">
            <a href="#">@T(Res.In("WebPortal").Of("Navigation").Name("Account"))</a>
            <ul>
                <li><a href="@Url.Action(Loc.Act("Settings").Ctrl("Account").NoArea().Localized())">&raquo;&nbsp;@T(Res.In("WebPortal").Of("Navigation").Of("Account").Name("Settings"))</a></li>
                <li><a href="@Url.Action(Loc.Act("Prof").Ctrl("Account").NoArea().Localized())">&raquo;&nbsp;@T(Res.In("WebPortal").Of("Navigation").Of("Account").Name("Profile"))</a></li>
            </ul>
        </li>
        <li class="separator">|</li>
        <li class="dropdown">
            <a href="#">@T(Res.In("WebPortal").Of("Navigation").Name("Wizard"))</a>
            <ul>
            @if(Svc.PublicationAuthor != null)
            {
                <li><a href="@Url.Action(Loc.Act("Create").Ctrl("BlogPost").Area("Wizard").Localized())">&raquo;&nbsp;@T(Res.In("WebPortal").Of("Navigation").Of("Wizard").Name("BlogPost"))</a></li>
            }
            @if(Svc.FileOwner != null)
            {
                <li><a href="@Url.Action(Loc.Act("Index").Ctrl("File").Area("Wizard").Localized())">&raquo;&nbsp;@T(Res.In("WebPortal").Of("Navigation").Of("Wizard").Name("File"))</a></li>
            }
            @if(Svc.Customer != null)
            {
                <li><a href="@Url.Action(Loc.Act("Index").Ctrl("Address").Area("Wizard").Localized())">&raquo;&nbsp;@T(Res.In("WebPortal").Of("Navigation").Of("Wizard").Name("Address"))</a></li>
                <li><a href="@Url.Action(Loc.Act("Index").Ctrl("Payment").Area("Wizard").Localized())">&raquo;&nbsp;@T(Res.In("WebPortal").Of("Navigation").Of("Wizard").Name("Payment"))</a></li>
                <li><a href="@Url.Action(Loc.Act("Index").Ctrl("Order").Area("Wizard").Localized())">&raquo;&nbsp;@T(Res.In("WebPortal").Of("Navigation").Of("Wizard").Name("Order"))</a></li>
                <li><a href="@Url.Action(Loc.Act("Show").Ctrl("ShoppingCart").Area("Wizard").Localized())">&raquo;&nbsp;@T(Res.In("WebPortal").Of("Navigation").Of("Wizard").Name("ShoppingCart"))</a></li>
            }
            </ul>
        </li>
        <li class="separator">|</li>
        <li><a href="@Url.Action(Loc.Act("SignOut").Ctrl("Access").NoArea().Localized())">@T(Res.In("WebPortal").Of("Navigation").Of("Access").Name("SignOut"))</a></li>
    </ul>
}
else
{
    <ul>
        <li><a href="@Url.Action(Loc.Act("SignIn").Ctrl("Access").NoArea().Localized())">@T(Res.In("WebPortal").Of("Navigation").Of("Access").Name("SignIn"))</a></li>
        @if(!Svc.Config<Boolean>(Par.In("Core").Of("CreateAccount").Name("Restricted")))
        {
            <li class="separator">|</li>
            <li><a href="@Url.Action(Loc.Act("SignUp").Ctrl("Access").NoArea().Localized())">@T(Res.In("WebPortal").Of("Navigation").Of("Access").Name("SignUp"))</a></li>
        }
    </ul>
}